import request from '@/utils/request'
import apiArr from '@/api'

export function fastResumeList(params) {
  return request({
    url: apiArr.fastResumeList,
    method: 'get',
    params
  })
}
export function fastGetExperience(params) {
  return request({
    url: apiArr.fastGetExperience,
    method: 'get',
    params
  })
}
export function fastResumeAdd(data) {
  return request({
    url: apiArr.fastResumeAdd,
    method: 'post',
    data
  })
}

export function fastResumeEdit(params, method = 'post') {
  if (method === 'post') {
    return request({
      url: apiArr.fastResumeEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.fastResumeEdit,
      method,
      params
    })
  }
}
export function fastResumeTop(data) {
  return request({
    url: apiArr.fastResumeTop,
    method: 'post',
    data
  })
}
export function fastResumeRec(data) {
  return request({
    url: apiArr.fastResumeRec,
    method: 'post',
    data
  })
}
export function fastResumeRefesh(data) {
  return request({
    url: apiArr.fastResumeRefesh,
    method: 'post',
    data
  })
}
export function fastResumeValid(data) {
  return request({
    url: apiArr.fastResumeValid,
    method: 'post',
    data
  })
}
export function fastResumeEditPwd(data) {
  return request({
    url: apiArr.fastResumeEditPwd,
    method: 'post',
    data
  })
}
export function fastResumeAudit(data) {
  return request({
    url: apiArr.fastResumeAudit,
    method: 'post',
    data
  })
}
export function fastResumeDelete(data) {
  return request({
    url: apiArr.fastResumeDelete,
    method: 'post',
    data
  })
}
export function fastResumeDeleteAll(data) {
  return request({
    url: apiArr.fastResumeDeleteAll,
    method: 'post',
    data
  })
}
